package com.baige.service.statistic.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 营销活动统计
 * </p>
 *
 * @author wulg
 * @since 2018-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("marketing_activities_statistic")
public class MarketingActivitiesStatistic extends Model<MarketingActivitiesStatistic> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 活动id
     */
    @TableField("activities_id")
    private String activitiesId;
    /**
     * 渠道id
     */
    @TableField("channel_id")
    private String channelId;
    /**
     * 渠道名称
     */
    @TableField("channel_name")
    private String channelName;
    /**
     * 总pv
     */
    @TableField("total_pv")
    private Integer totalPv;
    /**
     * 总uv
     */
    @TableField("total_uv")
    private Integer totalUv;
    /**
     * 活动名称
     */
    @TableField("activities_name")
    private String activitiesName;
    /**
     * 投放数量
     */
    @TableField("launch_count")
    private Integer launchCount;
    /**
     * 领取数量
     */
    @TableField("receive_count")
    private Integer receiveCount;
    /**
     * 注册用户数
     */
    @TableField("register_user_count")
    private Integer registerUserCount;
    /**
     * 新用户数
     */
    @TableField("new_user_count")
    private Integer newUserCount;
    /**
     * 老用户数
     */
    @TableField("old_user_count")
    private Integer oldUserCount;
    /**
     * 下单数
     */
    @TableField("order_count")
    private Integer orderCount;
    /**
     * 产品本金
     */
    @TableField("activities_amount")
    private BigDecimal activitiesAmount;
    /**
     * 收益金额
     */
    @TableField("earnings_amount")
    private BigDecimal earningsAmount;
    /**
     * 统计日期
     */
    @TableField("statistic_date")
    private String statisticDate;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
